import { createMemoryHistory, createRouter } from 'vue-router'

import ExcelEditor from '../components/ExcelEditor.vue'
import WordEditor from '../components/WordEditor.vue'

const routes = [
    { path: '/', redirect: '/excel' },
    { path: '/excel', component: ExcelEditor },
    { path: '/word', component: WordEditor },
]

const router = createRouter({
    history: createMemoryHistory(),
    routes,
})
export default router